#include "app.h"
void app_init()
{
	// init int vector
	app1_p = APP1_ADDR_P;
	app1_isr_rtc_p = APP1_RTC_P;
	app1_isr_adc_p = APP1_ADC_P;
	app1_isr_dac_p = APP1_DAC_P;
	app1_isr_i2c_p = APP1_I2C_P;
	app1_isr_uart0_p = APP1_UART0_P;
	app1_isr_uart1_p = APP1_UART1_P;
	app1_isr_gpio_p = APP1_GPIO_P;
	app1_isr_spim0_p = APP1_SPIM0_P;
	app1_isr_spim1_p = APP1_SPIM1_P;
	app1_isr_ta_ovf_p = APP1_TA_OVF_P;		
			
	app1_isr_tb_ovf_p = APP1_TB_OVF_P;
	app1_isr_tb_cmp_p = APP1_TB_CMP_P;
	
	app2_p = APP2_ADDR_P;
	app2_isr_rtc_p = APP2_RTC_P;
	app2_isr_adc_p = APP2_ADC_P;
	app2_isr_dac_p = APP2_DAC_P;
	app2_isr_i2c_p = APP2_I2C_P;
	app2_isr_uart0_p = APP2_UART0_P;
	app2_isr_uart1_p = APP2_UART1_P;
	app2_isr_gpio_p = APP2_GPIO_P;
	app2_isr_spim0_p = APP2_SPIM0_P;
	app2_isr_spim1_p = APP2_SPIM1_P;
	app2_isr_ta_ovf_p = APP2_TA_OVF_P;		
	
	app2_isr_tb_ovf_p = APP2_TB_OVF_P;
	app2_isr_tb_cmp_p = APP2_TB_CMP_P;
}